package com.mzkj.wanjulaile.mobile.api.modules.coupon.service;

import com.mzkj.wanjulaile.mobile.api.common.service.CrudService;
import com.mzkj.wanjulaile.mobile.api.modules.coupon.entity.Coupon;
import com.mzkj.wanjulaile.mobile.api.modules.coupon.mapper.CouponMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 优惠券Service
 * @author hgw
 * @version 2016-11-11
 */
@Service
@Transactional(readOnly = true)
public class CouponServiceImpl implements CouponService{

	@Autowired
	private CouponMapper couponMapper;
	
	public List<Coupon> findList(Coupon coupon) {
		return couponMapper.findList(coupon);
	}
	
	public List<Coupon> getCouponByType(Coupon coupon){
		return couponMapper.getCouponByType(coupon);
	}
}